import request from '@/utils/request'

// 查询stock列表
export function listStockmanage(query) {
  return request({
    url: '/system/stockmanage/list',
    method: 'get',
    params: query
  })
}

// 查询stock详细
export function getStockmanage(id) {
  return request({
    url: '/system/stockmanage/' + id,
    method: 'get'
  })
}

// 新增stock
export function addStockmanage(data) {
  return request({
    url: '/system/stockmanage',
    method: 'post',
    data: data
  })
}

// 修改stock
export function updateStockmanage(data) {
  return request({
    url: '/system/stockmanage',
    method: 'put',
    data: data
  })
}

// 删除stock
export function delStockmanage(id) {
  return request({
    url: '/system/stockmanage/' + id,
    method: 'delete'
  })
}
